package shopping.service;

import shopping.domain.Category;
import shopping.exceptions.CategoryHasProductException;

import java.util.List;

public interface CategoryService {
    public List<Category> findAll();
    public Category findById(String cid);

    void save(Category category);

    void update(Category category);

    void del(String cid) throws CategoryHasProductException;
}
